story = ("Abat who fell upon the ground and was caught by a Weasel pleaded to be spared his life. "
         "The Weasel refused, saying that he was by nature the enemy of all birds.")


def split_story():
    new_story = story.split(" ")
    length_story(new_story)


def length_story(s):
    count = len(s)
    print(count)


def find_name():
    print("主人公在故事中出现的位置:", story.find("Weasel"))


def replace_name():
    new_story = story.replace("Weasel", "Kangziming")
    print(new_story)
    new_story1 = new_story.upper()
    print(new_story1)
    new_story2 = new_story.lower()
    print(new_story2)


if __name__ == '__main__':
    split_story()
    find_name()
    replace_name()


